import { lazy } from "react"
const routes = [
  {
    path: "/index",
    component: lazy(() => import("../views/home/Index")),
    children: [
      {
        path: "/index/home",
        component: lazy(() => import("../views/home/home/Home")),
      },
      {
        path: "/index/car",
        component: lazy(() => import("../views/home/car/Car")),
      },
      {
        path: "/index/my",
        component: lazy(() => import("../views/home/my/My")),
      },
      {
        path: "/index",
        to:"/index/home"
      }
    ]
  },
  {
    path: "/login",
    component: lazy(() => import("../views/login/Login")),
  },
  {
    path: "/registry",
    component: lazy(() => import("../views/registry/Registry")),
  },
  {
    path: "/",
    to:"/index"
  }
]
export default routes